(function () {
  'use strict'
  window.onmessage = function (messageEvent) {
    var message = messageEvent.data
    if (!message) {
      return
    }
    if (message.event === 'EventSearchInfo') {
      console.log(message)
      window.eventEmitter.$emit('EventSearchInfo', message)
    }
  }
}())
